package com.example.cdctest.pojo;

import java.io.Serializable;
import java.util.Date;

public class TestPaper implements Serializable {
    private Integer id;

    /**
	* 用户信息
	*/
    private UserInfo userInfo;

    /**
	* 总分数
	*/
    private Integer fraction;

    /**
	* 时长，到时间后不能考试
	*/
    private Integer duration;

    /**
	* 1为使用，0为删除
	*/
    private Boolean enable;

    /**
	* 考试开始时间
	*/
    private Date testTime;

    /**
	* 考试表id
	*/
    private Examination examination;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getFraction() {
        return fraction;
    }

    public void setFraction(Integer fraction) {
        this.fraction = fraction;
    }

    public Integer getDuration() {
        return duration;
    }

    public void setDuration(Integer duration) {
        this.duration = duration;
    }

    public Boolean getEnable() {
        return enable;
    }

    public void setEnable(Boolean enable) {
        this.enable = enable;
    }

    public Date getTestTime() {
        return testTime;
    }

    public void setTestTime(Date testTime) {
        this.testTime = testTime;
    }

    public UserInfo getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(UserInfo userInfo) {
        this.userInfo = userInfo;
    }

    public Examination getExamination() {
        return examination;
    }

    public void setExamination(Examination examination) {
        this.examination = examination;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userInfoId=").append(userInfo);
        sb.append(", fraction=").append(fraction);
        sb.append(", duration=").append(duration);
        sb.append(", enable=").append(enable);
        sb.append(", testTime=").append(testTime);
        sb.append(", examinationId=").append(examination);
        sb.append("]");
        return sb.toString();
    }
}